package cn.ad.server.persistence;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.data.redis.core.ValueOperations;
import org.springframework.stereotype.Repository;

import cn.ad.server.domain.ad.StrategyUserDmpMap;

@Repository
public class StrategyUserDmpMapRepositoryImp implements StrategyUserDmpMapRepository {

	@Resource(name = "cacheRedisTemplate")
	private ValueOperations<String, ArrayList<String>> strategyUserDmpOperations;
	
	
	@Override
	public List<String> fetchUserDmpId(long strategyId, int channelId) {
		ArrayList<String> values = strategyUserDmpOperations.get(StrategyUserDmpMap.cacheKey(strategyId, channelId));
		return values;
	}
	

	
}
